package com.naiterui.ehp.bs.weixin.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(description = "用户注册信息")
public class RegisterParamVO implements Serializable {

    private static final long serialVersionUID = 6017161752907522092L;
    @ApiModelProperty(value = "不包括敏感信息的原始数据字符串，用于计算签名", required = true)
    private String rawData;
    @ApiModelProperty(value = "微信getUserInfo返回,加密信息", notes = "使用 sha1( rawData + sessionkey ) 得到字符串，用于校验用户信息", required = true)
    private String signature;
    @ApiModelProperty(value = "微信getUserInfo返回，包括敏感数据在内的完整用户信息的加密数据", required = true)
    private String encryptedData;
    @ApiModelProperty(value = "微信getUserInfo返回，加密算法初始向量", required = true)
    private String iv;
    @ApiModelProperty(value = "用户openID", required = true)
    private String openId;
    @ApiModelProperty(value = "场景参数")
    private String scence;

    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "验证码")
    private String code;
    @ApiModelProperty(value = "用户unionId")
    private String unionId;
}
